package com.ethink.order.api.model;

import com.ethink.order.api.info.PurchaseOrderDetailInfo;
import com.ethink.order.api.info.PurchaseQtyChangesLogInfo;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author default
 * @version 1.0.0
 * @ClassName PurchaseOrderDetailModel.java
 * @Description
 * @createTime 2022年11月08日 14:38:00
 */
@Data
public class PurchaseOrderDetailModel extends PurchaseOrderDetailInfo {

    @Schema(description = "需求确认数量")
    private Integer demandAffirmQty;

    @Schema(description = "订单来源")
    private String saleChannel;

    @Schema(description = "订单来源下级")
    private String saleSubChannel;

    @Schema(description = "申请人")
    private String applicant;

    @Schema(description = "目标成本-本币")
    private BigDecimal targetCostLocal;

    @Schema(description ="销售需求最低生产日期")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date worstDemandPeriod;

    @Schema(description = "锁单数量更改记录")
    private List<PurchaseQtyChangesLogInfo> qtyItem;
}


